/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package cn.com.recloud.bbs.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import cn.com.recloud.one.spring.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author herry
 * @date 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bbs_post_comment_log")
@ApiModel(value="PostCommentLog对象", description="")
public class bbs_post_comment_log extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "uuid")
    @TableId(value = "bbs_post_comment_logid", type = IdType.ASSIGN_UUID)
    private String bbs_post_comment_logid;

    @ApiModelProperty(value = "关联记录Id")
    @TableField("object_id")
    private String object_id;

    @ApiModelProperty(value = "关联记录Name")
    @TableField("object_name")
    private String object_name;

    @TableField("object_type_name")
    private String object_type_name;

    @ApiModelProperty(value = "评论来源：租户,微信")
    @TableField("comment_by_type")
    private String comment_by_type;

    @TableField("comment_by_typename")
    private String comment_by_typename;

    @ApiModelProperty(value = "评论人id")
    @TableField("comment_by_id")
    private String comment_by_id;

    @ApiModelProperty(value = "评论人名称")
    @TableField("comment_by_name")
    private String comment_by_name;

    @ApiModelProperty(value = "上级评论id")
    @TableField("parent_id")
    private String parent_id;

    @ApiModelProperty(value = "动态评论回复人id")
    @TableField("reply_comment_by_id")
    private String reply_comment_by_id;

    @ApiModelProperty(value = "动态评论回复人名称")
    @TableField("reply_comment_by_name")
    private String reply_comment_by_name;

    @ApiModelProperty(value = "评论内容")
    private String text;

    @ApiModelProperty(value = "评论状态")
    @TableField("bbs_post_comment_log_status")
    private String bbs_post_comment_log_status;

    @TableField("bbs_post_comment_log_statusname")
    private String bbs_post_comment_log_statusname;

    @ApiModelProperty(value = "子评论")
    @TableField(exist = false)
    private List<bbs_post_comment_log> comments = new ArrayList<>();
}
